package com.zhiyou.app.shop.website.service;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.zhiyou.app.shop.common.util.Page;
import com.zhiyou.app.shop.website.dao.pojo.MoneyDeal;
import com.zhiyou.app.shop.website.dao.pojo.User;
import com.zhiyou.app.shop.website.dao.pojo.UserAccount;
import com.zhiyou.app.shop.website.dao.pojo.UserStockInfo;

public interface IUserAccountService {

	public UserAccount findUserAccount(String userId);
	
	public UserAccount findByUserAccount(String userAccount);
	
	void findAll(Page page, User user);
	
	void doCharge(UserAccount userAccount, MoneyDeal deal);
	
	void splitStock(float per);
	
	public List<UserStockInfo> listSaleOrBuy(String userid,String tradeType,float startprice,
			float endprice,String card,String name,int pageno,int pagesize);
	
	public List listNum(String userid,String level,String tradeType,float startprice,float endprice,
			String status,Date starttime,Date endtime,String card,String name,int startnum,int endnum,int pageno,int pagesize);

	void saveAccount(UserAccount account);
	
	BigDecimal getTotal(String account);
}
